package net.xiduth.game.npc.glacor;

import net.xiduth.game.WorldTile;
import net.xiduth.game.npc.NPC;

public class SappingMinion extends NPC {

	private static final long serialVersionUID = 6520218487867695493L;

	public Glacor parent;
	public static boolean defeated = false;

	public SappingMinion(int id, WorldTile tile, int mapAreaNameHash,
			boolean canBeAttackFromOutOfArea, boolean spawned, Glacor parent) {
		super(id, tile, mapAreaNameHash, canBeAttackFromOutOfArea, spawned);
		this.parent = parent;
	}
	
	@Override
	public void processEntity() {
		super.processEntity();

		if (getHitpoints() <= 0 || isDead()) {
			if (!defeated)
			defeated = true;
		}
	}

}